package io.nutz.nutzsite.module.acm.models;

import java.io.Serializable;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.Id;
import org.nutz.dao.entity.annotation.Table;
		
/**
 * acm编译错误表 acm_compile_info
 * 
 * @author lrw
 * @date 2020-02-16
 */
@Table("compile_info")
public class CompileInfo implements Serializable {
	private static final long serialVersionUID = 1L;
	
			@Id
		@Column("solution_id")
	@Comment("解题号")
	private Integer solutionId;

			/** 编译错误信息 */
	@Column("error")
	@Comment("编译错误信息")
	private String error;

	
	public void setSolutionId(Integer solutionId) 
	{
		this.solutionId = solutionId;
	}

	public Integer getSolutionId() 
	{
		return solutionId;
	}

	public void setError(String error) 
	{
		this.error = error;
	}

	public String getError() 
	{
		return error;
	}

	@Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("solutionId", getSolutionId())
            .append("error", getError())
            .toString();
    }
}
